package exception;

public class NoEnoughPapersException extends Exception {
    private String studentName;
    private int preferredQuantity;
    private int availableCount;

    public NoEnoughPapersException(String studentName, int preferredQuantity, int availableCount) {
        super("学生 " + studentName + " 希望选论文 " + preferredQuantity + " 篇，但目前只有 " + availableCount + " 篇可选");
        this.studentName = studentName;
        this.preferredQuantity = preferredQuantity;
        this.availableCount = availableCount;
    }

    public String getStudentName() {
        return studentName;
    }

    public int getPreferredQuantity() {
        return preferredQuantity;
    }

    public int getAvailableCount() {
        return availableCount;
    }
}
